home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Review 28
/
Creative-Review-CD-ROM-28.iso
/
pc
/
kungfu
/
assets
/
game.dir
/
00073_Script_start & stop
< prev
next >
Wrap
Text File
|
1997-08-08
|
2KB
|
101 lines
-- ==================================================
-- startmovie
-- --------------------------------------------------
on startmovie
put "startmovie: ", the movie
cursor 200
set the exitlock = true
hcheckdepth
set the keyDownScript = "keyQuit"
end startmovie
-- ==================================================
-- stopmovie
-- --------------------------------------------------
on stopmovie
put "closemovie: ", the movie
cursor - 1
end stopmovie
-- ==================================================
-- hdispose
-- --------------------------------------------------
on hdispose
hendgame
global gpoll
mdispose gpoll
global grear
mdispose grear
end hdispose
-- ==================================================
-- hendgame
-- --------------------------------------------------
on hendgame
turnpuppets 1, 48, false
end hendgame
-- ==================================================
-- hcheckdepth
-- --------------------------------------------------
on hcheckdepth
if not ( the colordepth = 8 ) then
if the machinetype = 256 then
alert "Set your monitor to 256 colours"
else
set the colordepth = 8
end if
end if
-- if the machinetype = 256 then
-- if the freebytes < 2.5 * 1024 then
-- alert "There is insufficent memory to run this program"
-- quit
-- end if
-- end if
if not ( the quicktimepresent ) then
alert "Please install Quicktime"
quit
end if
end hcheckdepth
on keyQuit
if (the commandDown) and (the key = "Q") then QUITME
end keyQuit
ON QUITME
repeat with n = 1 to 16
puppetSound n, false
end repeat
unloadcast
set the colorDepth to 16
play done
end QUITME